#!/usr/bin/python

#Copyright 2012 Elias Farhan
#
#This file is part of Squirrel.
#
#Squirrel is free software: you can redistribute it and/or modify it under the terms of the GNU General 
#Public License as published by the Free Software Foundation, either version 3 of the License, or (at your #option) any later version.
#
#Squirrel is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the #implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

import socket
import threading
import game_data
import client_management


class Server(threading.Thread):
	def __init__(self):
		threading.Thread.__init__(self)
		self.port = 42000
		self.host = ''
		self.serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
		self.serversocket.bind((HOST, PORT))
		self.running = True
	def run(self):
		while running:
			self.serversocket.listen(5)
			
		

